package com.itheima01.day08test;

import java.util.Scanner;

/**
 * @author 刘全
 * @date 2021/7/9
 */
public class Test02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        String s = sc.nextLine();
        char[] chars = s.toCharArray();
        int i =chars.length-1;
        String dao ="";
        for (; i >=0; i--) {
            dao +=chars[i];
        }
        if(s.equals(dao)){
            System.out.println("该字符串是对称的字符串");
        }else{
            System.out.println("该字符串不是对称的字符串");
        }
    }
}
